package br.com.moxeon.model.financialaccounts;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import br.com.moxeon.model.MoxeonControlledBasicPersistentEntity;


@SuppressWarnings("serial")
@Entity
@Table(name = "financial_account")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING)
@DiscriminatorValue(value = "FA")
public abstract class FinancialAccount extends MoxeonControlledBasicPersistentEntity {

	/*
	@Deprecated
	@ManyToOne(targetEntity = Cash.class, fetch = FetchType.LAZY)
	private Cash cash;

	public Cash getCash() {
		return cash;
	}
	

	public void setCash(Cash cash) {
		this.cash = cash;
	}
	*/

}